<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h1>{{msg}}</h1>
      <button v-on:click="brand">品牌</button>
    <button @click="site">品牌</button>

    </div>
    
    <script src="../js/vue.js"></script>

    <script>
      const app = Vue.createApp({
        data() {
          return {
            msg: "123456789"
          }
        },
        methods: {
          brand(){
            console.log(123);
            this.msg = 'hahha'
          },
          site(){
            this.msg = 'www.xiqian.com'
          }
        }
      }).mount("#app");
    </script>
  </body>
</html>